import request from '@/utils/request'

// 查询产品入库列表
export function listProductionWarehousing(query) {
  return request({
    url: '/system/ProductionWarehousing/list',
    method: 'get',
    params: query
  })
}


// 查询工单详细
export function getProductionWarehousingList(params) {
  return request({
    url: '/system/ProductionWarehousing/query',
    method: 'get',
    params: {
      id: params.id,
    }
  })
}


// 查询产品入库详细
export function getProductionWarehousing(id) {
  return request({
    url: '/system/ProductionWarehousing/' + id,
    method: 'get'
  })
}

// 新增产品入库
export function addProductionWarehousing(data) {
  return request({
    url: '/system/ProductionWarehousing',
    method: 'post',
    data: data
  })
}

// 修改产品入库
export function updateProductionWarehousing(data) {
  return request({
    url: '/system/ProductionWarehousing',
    method: 'put',
    data: data
  })
}

// 删除产品入库
export function delProductionWarehousing(id) {
  return request({
    url: '/system/ProductionWarehousing/' + id,
    method: 'delete'
  })
}
